package com.jm.msm.utils;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class ConstantPropertiesUtils implements InitializingBean {

    @Value("${rly.sms.accountSId}")
    private String accountSId;//开发者主账号

    @Value("${rly.sms.accountToken}")
    private String accountToken;//主账号令牌

    @Value("${rly.sms.appId}")
    private String appId;//创建应用的APPID

    public static String ACCOUNT_SID;
    public static String ACCOUNT_TOKEN;
    public static String APP_ID;

    @Override
    public void afterPropertiesSet() throws Exception {
        ACCOUNT_SID=accountSId;
        ACCOUNT_TOKEN=accountToken;
        APP_ID=appId;
    }
}

